package cn.bestick.cblog.dao;

import java.util.List;
import cn.bestick.cblog.dmo.Category;
import cn.bestick.cblog.dto.CategoryDto;

public interface CategoryDao {

	// getCategories() category(name,count)
	public List<CategoryDto> all() throws Exception;

	// updateCategory() category(name)
	public void update(Category category) throws Exception;

	// saveCategory() category(name)
	public void save(Category category) throws Exception;

	// deleteCategory( categoryId)
	public void delete(Integer id) throws Exception;

	public Category get(Integer id) throws Exception;

	public boolean exist(int categoryId) throws Exception;
}
